<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<p:dialog xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui" 
	modal="true" width="800" height="300" resizable="false" 
	widgetVar="dialogListCondicaoPagamento" id="listDialogCondicaoPagamento"
	appendToBody="true">
	
<h:head>
	<style>
		.ui-widget {
			font-size:13px; 
		}
	</style>
</h:head>

	<f:facet name="header">
			<h:outputText value="Consultar Condicão de Pagamento"/>
	</f:facet>
	
	<h:form>
		<div style="margin-left:5%;">
			<h:panelGrid columns="2">
				<h:outputText value="Código:"/>
				<h:outputText value="Condição de pagamento"/>
				<h:inputText style="width:100px;"/>
				<h:inputText  style="width:200px;"/>
			</h:panelGrid>
		
		<div style="float:left;width:95%; padding-bottom:10px;padding-top:10px;text-align:right;">
			<p:commandButton value="Consultar" style="height:28px;"/>
			<p:commandButton value="Novo" style="height:28px;" onclick="dialogAddCondicaoPagamento.show();"/>
			<p:commandButton value="Limpar" style="height:28px;"/>
		</div>
		
		<div style="float:left;">
			<p:dataTable style="width:700px"  var="cidade" >  
		        <p:column headerText="Código" style="width:100px;">  
		            <h:outputText value="#{cidade.id}" />  
		        </p:column>  
		  
		        <p:column headerText="Condição de pagamento">  
		            <h:outputText value="#{cidade.cidade}" />  
		        </p:column> 
	  	  </p:dataTable>
		</div>
	</div>
	<ui:include src="formCondicaoPagamento.xhtml"></ui:include>
	</h:form>
</p:dialog>